// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 56;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You enter a region with mild but constant volcanic activity. You navigate carefully among hot springs and bubbling mud pits. There are no signs of human travel. This could be a good hiding place for packs of raiders, but they are wise enough to stay away.";
	text2 = "Every once in a while, you find a neat pile of old human skulls. It's not hard to tell what message these are meant to give.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "There is a large clan house here, not far from the road. Wooden barricades, watched by young warriors, keep them safe.";
	text2 = "When you pass by, some Dhagans run out to greet you. Somehow, they heard you were coming. The men invite you in for warm tea and a meal, served by a handful of old women.";
	text3 = "They have no useful information or intriguing goods for sale. They're just being courteous. Though you imagine playing host to a [P] of Haven does give some prestige. After an appropriate amount of time, you pay your respects and depart.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "You find an old, abandoned nest. It used to provide shelter for some of the beasts that roam this barren stretch of the Dhagan hills. Now it is empty.";
	text2 = "You look for treasure, but you find nothing but bones and trash.";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "You find the nest of some of the beasts that roam this desolate stretch of hills. Happily, its owners are nowhere to be seen.";
	text2 = "You give it a quick search. Not much to find, alas. Just a handful of old silver coins.";
	code =
		sf(100 + this_sec,5,1);
		change_coins(8,TRUE);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "You find an old, abandoned nest. It used to provide shelter for some of the beasts that roam this barren stretch of the Dhagan hills. Now it is empty.";
	text2 = "You look for treasure, but you only find sticks and skull fragments.";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "You find an old, abandoned nest. It used to provide shelter for some of the beasts that roam this barren stretch of the Dhagan hills. Now it is empty.";
	text2 = "You look for treasure, but you find nothing but an entire direwolf skeleton, gnawed, sun-bleached, and piled up in the nest.";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "You find the nest of some of the beasts that roam this desolate stretch of hills. Happily, its owners are nowhere to be seen.";
	text2 = "You give the nest a quick search. You find several fresh scorpion carapaces. Interesting. Also gross. Under one of them, you also find a lovely crystal.";
	code =
		change_crafting(1,0,0,0,0);
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "You find the grim remnants of a recent battle. A caravan was ambushed by raiders here. The ground is scorched. The burned-out wagons were abandoned. The attackers are long gone.";
	text2 = "This is the work of the raiders that have plagued the Low Dhaga. It is not surprising that the people here are angry.";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = gf(156,3) == 0;
	question = "Name";
	text1 = "There are two clans on these lands. They are close allies, and they make their livings extracting stone bricks from this huge, rocky spire.";
	text2 = "When they see that a Havenite has come, they invite you in for drinks and conversation.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Accept the offer.";
	text1 = "You enter a long hall in the northern clan's home. Only men come to greet you. You suspect that the women are behind the doors, preparing snacks and listening carefully.";
	text2 = "They trade tales with you of battles in the Rokaj. They know little about the raids that have plagued the hills. Their defenses were strong enough to keep them away. This has been fortunate, as they have found several veins of deep metal.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Politely decline.";
	text1 = "They assure you that the invitation remains. You depart.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(156,19) == 0;
	question = "Try to buy deep metal.";
	text1 = "They don't want to sell any. They plan to have it alloyed with steel and enchanted. A powerful and high-status blade for any clan.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Demand that they give you some deep metal.";
	text1 = "They are shocked and alarmed. But very quietly. They know enough to not reject the demands of their conqueror. You are soon presented with a bar of the precious metal as tribute.";
	text2 = "They are not happy.";
	code =
		sf(156,19,1);
		change_crafting(0,0,0,1,0);
		ro_faction(-3);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Ask about the area.";
	text1 = "You learn that there is a fiery region to the northeast called the Firepits. An ancient drake lives there. Sometimes, he deals with the Dhagans. Other times, he just eats them.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Ask where the women are.";
	text1 = "You receive stony silence.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Depart.";
	text1 = "You politely take your leave. They wave at you as you depart.";
	text2 = "You don't fail to note the loathing in their eyes.";
	text3 = "They seemed to actually like you. But who can tell with the Ro?";
	action = END_TALK;
	code =
		sf(156,3,1);
		if (gf(156,19) == 0)
			rs(2);
			else rs(3);
	break;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "You meet a small caravan on the road. There is a single wagon, guarded by fifteen armed men of the Dhaga. In the wagon, you see a lone young woman. She is protected from the harsh sun by an umbrella.";
	text2 = "When you get close, some of the men leap into the wagon, lifting sheets of crude cloth to block your vision. The other warriors stand in your way.";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "Stop them.";
	text1 = "They are quite displeased. The biggest, strongest of them walks forward. He plants a huge halberd in the sand and says, _You are Haven, yes? We are not criminals. Not raiders. We have right of free travel. We will pass._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just let them go.";
	text1 = "You silently walk by. They watch you, on their guard, until you are past. Then they lower the cloth sheets and rush their caravan away.";
	action = END_TALK;

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_And who is in the wagon?_";
	text1 = "_She is ours. That is all I must say._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_This is suspicious._";
	text1 = "_This is clan business, all according to tradition. No harm is taking place. The Ro will not answer for our ways._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "Walk forward and pull aside the sheets.";
	text1 = "For a moment, you think you're about to be in a fight. Their leader makes a signal, and the Dhagans let you by. Their glares burn little spots into your back.";
	text2 = "You look inside the wagon and see a single Dhagan woman. She wears the same clan colors as the men. She is also terrified. Of you.";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_Turn back and go home._";
	text1 = "Their leader considers arguing. Then he thinks better of it. _Fine. Your governor never acts, so his envoy goes out to do random harm._ They turn back without another word.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
		violence(1);
		ro_faction(-2);
	break;
	
begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_Move on._";
	text1 = "For all their bluster and blades, they are clearly relieved. As soon as they can, they quickly move on.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
		violence(-1);
		ro_faction(2);
	break;


	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				